/*
 * @Author: yangrongxin
 * @Date: 2021-08-06 16:51:27
 * @LastEditors: yangrongxin
 * @LastEditTime: 2021-08-27 10:31:39
 */
import request, { Request } from '@/restful/index';

/* 获取播放的视频地址 */
export const getVideoUrlWithVideoId = async (data: any) =>
  request(Request.Article.getVideoUrl, {
    ...data,
  });

/* 获取文章详情 */
export const getArticleDetail = async (data: any) =>
  request(Request.Article.getArticleDetail, {
    ...data,
    appCode: 'HXTAPP',
    channelCode: 'hxt_patient',
  });

/* 获取文章列表 */
export const getArticleList = async (data?: any) => {
  console.log('getArticleList', Request.Article.getArticleList);
  return request(Request.Article.getArticleList, {
    ...data,
    appCode: 'HXTAPP',
    channelCode: 'hxt_patient',
  });
};

/* 点赞接口 */
export const likeArticle = async () => {
  return {};
};
